hvm: Allow HVM guests to execute GNTTABOP_setup_table.
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 28 Mar 2008 17:58:36 +0000 (17:58 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 28 Mar 2008 17:58:36 +0000 (17:58 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/hvm/hvm.c

index 1f66fcb1054365f1c182dfc1d2f71d9aa893a9fa..961bfbf354afeec3a356800dcc593faef05d83b3 100644 (file)
@@ -1706,7 +1706,7 @@ enum hvm_intblk hvm_interrupt_blocked(struct vcpu *v, struct hvm_intack intack)
 static long hvm_grant_table_op(
     unsigned int cmd, XEN_GUEST_HANDLE(void) uop, unsigned int count)
 {
-    if ( cmd != GNTTABOP_query_size )
+    if ( (cmd != GNTTABOP_query_size) && (cmd != GNTTABOP_setup_table) )
         return -ENOSYS; /* all other commands need auditing */
     return do_grant_table_op(cmd, uop, count);
 }